package com.itcc.service.impl;

import com.itcc.dao.TypeDao;
import com.itcc.dao.impl.TypeDaoImpl;
import com.itcc.entity.Type;
import com.itcc.service.TypeService;

import java.sql.SQLException;
import java.util.List;

public class TypeServiceImpl implements TypeService {
    @Override
    public List<Type> findAll() throws SQLException {

        TypeDao typeDao=new TypeDaoImpl();
        List<Type> types = typeDao.seletAll();

        return types;
    }
}
